<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="UTF-8"
    import="br.org.acessobrasil.metaiah.*"
    %>
<%!
MetaIAH metaIAH = new MetaIAH();
%>
<div id="search">
	<form action="?nu_pagina=725" method="post">
		<div>
			<label for="expression">Digite uma ou mais palavras para pesquisar</label><br />
			<input type="text" id="expression" name="expression" value="<%=request.getParameter("expression")==null?"Palavra chave":request.getParameter("expression").replace("\"","&quot;")%>" onfocus="this.select()" />
			<input type="submit" value="Pesquisar" id="btnPesquisar" />
		</div>
	</form>
	<div id="result">
		<h4>
			<span>Resultado</span>
		</h4>
		<% 
		try{
			%><%=metaIAH.pesquisar(request.getParameter("expression"),request)%><%
		}catch(Exception e){
			e.printStackTrace();
		}
		%>
	</div>
</div>